package com.wei.czz.framework.common.dao;

import com.wei.czz.framework.common.entity.SmsTemplateEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2024-06-17 21:41:28
 * className: SmsTemplateDao
 * version: 1.0
 * description:
 */
public interface SmsTemplateDao extends BaseMapper<SmsTemplateEntity> {

    /**
     * 乐观锁更新短信模板
     * @param smsTemplate 短信模板对象
     * @return 更新数据条数
     */
    int optimisticUpdate(@Param("smsTemplate") SmsTemplateEntity smsTemplate);
}
